package com.shop2cn.iapi.shenqisettlement.testcase;

import java.math.BigDecimal;
import java.util.Arrays;
import java.util.List;

import com.shop2cn.iapi.shenqisettlement.parameter.SaveProxyFissionConfigReq;
import com.shop2cn.iapi.shenqisettlement.parameter.bean.ProxyFissionCommissionBean;
import com.shop2cn.iapi.shenqisettlement.service.SaveProxyFissionConfigCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
import com.ymttest.database.model.shenqisettlement.ProxyFissionCommisionRate;
import com.ymttest.database.model.shenqisettlement.ProxyFissionConfig;
import com.ymttest.database.sqlwapper.shenqisettlement.ProxyFissionCommisionRateWrapper;
import com.ymttest.database.sqlwapper.shenqisettlement.ProxyFissionConfigWrapper;
import com.ymttest.utils.DataUtil;
import com.ymttest.utils.TestDataManager;

import org.junit.*;
import org.junit.experimental.categories.Category;

/**
 * 根据国家获取汇率 FreeMaker Template自动生成代码
 */
@TestSuite
public class Ts_SaveProxyFissionConfig {
	private static SaveProxyFissionConfigReq saveProxyFissionConfigReq;
	private static SaveProxyFissionConfigCall saveProxyFissionConfigCall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("代理裂变配置保存");
	}

	@Before
	public void caseUp() {
		saveProxyFissionConfigReq = new SaveProxyFissionConfigReq();
		saveProxyFissionConfigCall = new SaveProxyFissionConfigCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(saveProxyFissionConfigCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	public void verify() {

		ProxyFissionConfigWrapper proxyFissionConfigWrapper = new ProxyFissionConfigWrapper();
		
		ProxyFissionConfig actualProxyFissionConfig = proxyFissionConfigWrapper
				.selectLatestByMerchantId(saveProxyFissionConfigReq
						.getMerchantId());

		Logger.comment("验证proxy_fission_config表");

		Logger.verifyEquals(saveProxyFissionConfigReq.getMerchantId(),
				actualProxyFissionConfig.getMerchant_id(), "验证Merchant_id");
		Logger.verifyEquals(saveProxyFissionConfigReq
				.getProxyFissionSettlementDelayDays(), actualProxyFissionConfig
				.getProxy_fission_settlement_delay_days(),
				"验证Proxy_fission_settlement_delay_days");
		Logger.verifyEquals(saveProxyFissionConfigReq.getBaseCommissionType(),
				actualProxyFissionConfig.getBase_commission_type(),
				"验证Base_commission_type");
		DataUtil.verifyDecimalEquals(
				new BigDecimal(null == saveProxyFissionConfigReq
						.getInviteProxyLimit() ? "0.00"
						: saveProxyFissionConfigReq.getInviteProxyLimit()),
				actualProxyFissionConfig.getInvite_proxy_limit(),
				"验证Invite_proxy_limit");
		DataUtil.verifyDecimalEquals(
				new BigDecimal(null == saveProxyFissionConfigReq
						.getCommissionLimit() ? "0.00"
						: saveProxyFissionConfigReq.getCommissionLimit()),
				actualProxyFissionConfig.getCommision_limit(),
				"验证Refund_commision_limit");
		
		Logger.comment("验证proxy_fission_commision_rate表");
		
		ProxyFissionCommisionRateWrapper proxyFissionCommisionRateWrapper = new ProxyFissionCommisionRateWrapper();
		
		List<ProxyFissionCommisionRate> actualProxyFissionCommisionRateList = proxyFissionCommisionRateWrapper
				.selectByMerchantIdAndConfigId(
						saveProxyFissionConfigReq.getMerchantId(),
						actualProxyFissionConfig.getId());
		
		int i = 0;
		
		for (ProxyFissionCommissionBean bean : saveProxyFissionConfigReq.getCommissions()) {
			
			ProxyFissionCommisionRate actualProxyFissionCommisionRate = actualProxyFissionCommisionRateList.get(i);
			
			Logger.verifyEquals(saveProxyFissionConfigReq.getMerchantId(),
					actualProxyFissionCommisionRate.getMerchant_id(), "验证Merchant_id");
			Logger.verifyEquals(actualProxyFissionConfig.getId(),
					actualProxyFissionCommisionRate.getProxy_fission_config_id(), "验证Proxy_fission_config_id");
			Logger.verifyEquals(bean.getProxyLevelLabel(),
					actualProxyFissionCommisionRate.getProxy_level_label(), "验证Proxy_level_label");
			Logger.verifyEquals(bean.getProxyLevelIndex(),
					actualProxyFissionCommisionRate.getProxy_level_index(), "验证Proxy_level_index");
			DataUtil.verifyDecimalEquals(new BigDecimal(bean.getLayer1Rate()),
					actualProxyFissionCommisionRate.getLayer1_rate(), "验证Layer1_rate");
			DataUtil.verifyDecimalEquals(new BigDecimal(bean.getLayer2Rate()),
					actualProxyFissionCommisionRate.getLayer2_rate(), "验证Layer2_rate");
			
			i++;
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_001() {
		Logger.start(true, "设置代理裂变配置成功");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(0, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");

			this.verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_002() {
		Logger.start(true, "设置多个代理裂变配置成功");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean1 = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean1.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean1.setProxyLevelIndex(0);
			proxyFissionCommissionBean1.setLayer1Rate("0.21");
			proxyFissionCommissionBean1.setLayer2Rate("0.12");
			
			ProxyFissionCommissionBean proxyFissionCommissionBean2 = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean2.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean2.setProxyLevelIndex(1);
			proxyFissionCommissionBean2.setLayer1Rate("0.11");
			proxyFissionCommissionBean2.setLayer2Rate("0.2");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean1, proxyFissionCommissionBean2));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(0, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");

			this.verify();
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_003() {
		Logger.start(true, "不输入merchantId，保存报错");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			//saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("merchantId:商户id不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_004() {
		Logger.start(true, "不输入commissions，保存报错");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			//saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("commissions:代理返佣配置不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_005() {
		Logger.start(true, "不输入InviteProxyLimit，设置分销裂变成功");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
//			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(0, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			
			this.verify();
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_006() {
		Logger.start(true, "不输入RefundCommissionLimit，设置分销裂变成功");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
//			saveProxyFissionConfigReq.setRefundCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(0, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			
			this.verify();
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_007() {
		Logger.start(true, "不输入ProxyFissionSettlementDelayDays，设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
//			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("proxyFissionSettlementDelayDays:结算天数不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_008() {
		Logger.start(true, "不输入BaseCommissionType，设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
//			saveProxyFissionConfigReq.setBaseCommissionType(1);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("baseCommissionType:分佣基数不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}

	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_009() {
		Logger.start(true, "不输入ProxyLevelLabel， 设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
//			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("commissions[0].proxyLevelLabel:代理类型名称不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_010() {
		Logger.start(true, "不输入ProxyLevelIndex， 设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
//			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("commissions[0].ProxyLevelIndex:代理类型编号不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_011() {
		Logger.start(true, "不输入Layer1Rate， 设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
//			proxyFissionCommissionBean.setLayer1Rate("0.21");
			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("commissions[0].layer1Rate:一级分销返佣比率不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_012() {
		Logger.start(true, "不输入Layer2Rate， 设置失败");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.21");
//			proxyFissionCommissionBean.setLayer2Rate("0.12");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(2, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");
			Logger.verifyEquals("commissions[0].layer2Rate:二级分销返佣比率不能为空", saveProxyFissionConfigCall.getRetultMsg(), "验证resultMessage");
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
	
	@Test
	@Category({ P1.class })
	@TestCase
	public void Tc_SaveProxyFissionConfig_013() {
		Logger.start(true, "返佣比例均设置为0， 设置成功");
		try {
			
			ProxyFissionCommissionBean proxyFissionCommissionBean = new ProxyFissionCommissionBean();
			
			proxyFissionCommissionBean.setProxyLevelLabel(TestDataManager.randomStr(7));
			proxyFissionCommissionBean.setProxyLevelIndex(0);
			proxyFissionCommissionBean.setLayer1Rate("0.00");
			proxyFissionCommissionBean.setLayer2Rate("0.00");

			saveProxyFissionConfigReq.setMerchantId(50055221234L);
			saveProxyFissionConfigReq.setCommissions(Arrays.asList(proxyFissionCommissionBean));
			saveProxyFissionConfigReq.setInviteProxyLimit("2000.00");
			saveProxyFissionConfigReq.setCommissionLimit("1000.00");
			saveProxyFissionConfigReq.setProxyFissionSettlementDelayDays(1);
			saveProxyFissionConfigReq.setBaseCommissionType(2);
			
			saveProxyFissionConfigCall.setData(saveProxyFissionConfigReq);

			saveProxyFissionConfigCall.callService();

			Logger.verifyEquals(0, saveProxyFissionConfigCall.getRetultCode(), "验证resultCode");

			this.verify();
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}